package com.cs171.market.mapper;

import com.cs171.market.entity.CartList;
import com.cs171.market.entity.Comment;
import com.cs171.market.entity.Good;
import com.cs171.market.entity.User;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper {
    @Select("Select cid,u.uname,positive,u.avatar,content,timeStamp FROM Comments c,User u WHERE c.gid=#{id} and c.uid=u.uid")
    List<Comment> getCommentsById(Integer id);
}
